package com.quad.innovators.salesease.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.quad.innovators.salesease.model.bo.RouteBO;
import com.quad.innovators.salesease.model.entity.SysMenu;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Set;

/**
 * 系统菜单mapper
 */
public interface SysMenuMapper extends BaseMapper<SysMenu> {

    /**
     * 获取菜单路由列表
     */
    List<RouteBO> listRoutes(Set<String> roles);

    SysMenu getSysMenuByCode(@Param("code") String code);
}
